value = $value; $this->value = \str_replace('""', '"', $this->value); if (\strpos($this->value, "'") !== \false && \strpos($this->value, "\n") === \false) { $kind = String_::KIND_DOUBLE_QUOTED; } else { $kind = String_::KIND_SINGLE_QUOTED; } $this->setAttribute(AttributeKey::KIND, $kind); } public function __toString() : string { return '"' . \str_replace('"', '""', $this->value) . '"'; } }